package com.zis.auction.dao;

import com.zis.auction.model.Essay;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EssayDao extends BaseMapper<Essay> {

    @SqlStatement(params = "msgId")
    Essay findById(String msgId);

    @SqlStatement(params = "msgType,page,pageSize")
    List<Essay> findByPage(String msgType, Integer page, Integer pageSize);
}
